package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-06-27
 */
@TableName("nb_realtime")
public class Realtime extends Model<Realtime> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("g_scode")
    private String gScode;
    @TableField("g_time")
    private Date gTime;
    @TableField("g_type")
    private Integer gType;
    @TableField("g_dec")
    private String gDec;
    
    private String temp;
    

    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getgScode() {
        return gScode;
    }

    public void setgScode(String gScode) {
        this.gScode = gScode;
    }

    public Date getgTime() {
        return gTime;
    }

    public void setgTime(Date gTime) {
        this.gTime = gTime;
    }

    public Integer getgType() {
        return gType;
    }

    public void setgType(Integer gType) {
        this.gType = gType;
    }

    public String getgDec() {
        return gDec;
    }

    public void setgDec(String gDec) {
        this.gDec = gDec;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    

    public String getTemp() {
		return temp;
	}

	public void setTemp(String temp) {
		this.temp = temp;
	}

	@Override
    public String toString() {
        return "Realtime{" +
        "id=" + id +
        ", gScode=" + gScode +
        ", gTime=" + gTime +
        ", gType=" + gType +
        ", gDec=" + gDec +
        "}";
    }
}
